<div class="_contro">
    <?php if($is_admin==1){?>
    <a href="/home/store/configure" class="_a"><font class="_font">配置信息</font></a>&nbsp;&nbsp;&nbsp;
    <a href="/home/store/creates" class="_a"><font class="_font"><b>+</b>添加店铺</font></a>
    <?php }?>
</div>
<div class='_cut'></div>
<?php foreach($store as $k=>$v){?>
<?php if($k%2==0){?>
<div class='row'>
<?php }?>

    <div class='col-sm-2 col-md-6 full'>
        <h2 ><?php echo $v['name'];?></h2>
        <div class="thumbnail" style="margin-bottom:10px"> 
            <div style="width:100%;height:20rem;overflow: hidden;">                
                <img style="width:100%;height:20rem;" src="<?php echo $v['logo'];?>"  id="_banner_"/>
                <br/>
            </div>
            
            <div style='margin-top:1rem;' >
                <span style='float:right;cursor:pointer;' ><a href='/home/store/edit?id=<?php echo $v['id'];?>'>编辑店铺信息</a> </span>
                <span style='float:right;cursor:pointer;color:#337ab7;' onclick='info(<?php echo $v['id'];?>)' >店铺基本信息&nbsp;&nbsp;&nbsp;&nbsp; </span>
            </div>
   
  
<div class='_line'></div> 
<div  id='<?php echo $v['id']; ?>' style='display:none;padding-left:1rem;'  >
    <div style='padding-left:1rem;' >
        <div>地址：<?php echo $v['address'];?></div>
        <div>联系人：<?php echo $v['person_charge']?></div>
        <div>电话：<?php echo $v['tel'];?></div>
    </div> 
    <div  >
        <span  style='float:left;width:40%;margin-top:1rem;'  >
            <div  style='padding-left:1rem;margin-bottom:1rem;' >店铺微信二维码</div>
            <img src="<?php echo $v['code'];?>" style="width:100%;height:175px" id="code"/>
        </span>
        <span style='float:right;width:58%;margin-top:1rem;'  >
            <div  style='margin-bottom:1rem;' >店铺地理位置</div>
            <img style='width:100%;height:175px' src='http://apis.map.qq.com/ws/staticmap/v2/?center=<?php echo $v["latlng"];?>&zoom=13&size=600*300&maptype=roadmap&markers=size:large|color:0x4169e1|label:D|<?php echo $v["latlng"];?>&key=5LTBZ-Z6PC5-WAGIB-QXGAX-JBVBF-XQBTP'/>
        </span>
        
    </div>
    <div class='clear' ></div>
    <div style='float:right;' >
        <span style='float:right;color:#337ab7;cursor:pointer;' onclick='hide(<?php echo $v['id'];?>)' >收起︽&nbsp;&nbsp;&nbsp;&nbsp; </span>
    </div>
</div>
        </div>
    </div>
    <div class='clear' ></div>
<?php if(($k+1)%2==0 || $store[$k+1]['id']<1){?>
</div>
<?php }?>
<?php }?>       

<script type="text/javascript">
    function info(id){
        $('#'+id).show();
        $('#'+id).parent().css('height','530px');
        
    }
    function hide(id){
        $('#'+id).hide();
        $('#'+id).parent().css('height','240px');
    }
</script>